package com.swas.dao;

import com.swas.entity.BuyCheck;
import com.swas.entity.BuyCheckExample;
import java.util.List;

import com.swas.vo.BaseStockVO;
import com.swas.vo.BuyCheckVO;
import org.apache.ibatis.annotations.Param;

public interface BuyCheckDao {
    long countByExample(BuyCheckExample example);

    int deleteByExample(BuyCheckExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BuyCheck record);

    int insertSelective(BuyCheck record);

    List<BuyCheck> selectByExample(BuyCheckExample example);

    BuyCheck selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BuyCheck record, @Param("example") BuyCheckExample example);

    int updateByExample(@Param("record") BuyCheck record, @Param("example") BuyCheckExample example);

    int updateByPrimaryKeySelective(BuyCheck record);

    int updateByPrimaryKey(BuyCheck record);

    List<BuyCheckVO> selectAll();

    List<BuyCheckVO> selectAllNo();

    List<BuyCheckVO> searchLikeNo(@Param("name") String name, @Param("no") String no);

    List<BuyCheckVO> searchLike(@Param("name") String name, @Param("checkdate") String checkdate);

    List<BaseStockVO> selectBuyCheckAll();

    List<BaseStockVO> selectLike(@Param("name") String name, @Param("buyman") String buyman);

    boolean setOne(@Param("id") Integer id, @Param("dec") String dec);
}